extends Spatial


# Declare member variables here. Examples:
# var a = 2
# var b = "text"


#These are terrible but will hopefully improve as problems become evident
#Units are 1000km, hours, and degrees
export var semimajor_axis: float = 10000
export var eccentricity: float = 0
export var angle_of_apoapsis: float = 42
export var xtilt: float = 0
export var ytilt: float = 0
export var daylen: int = 6
var orbital_period: int
var planet: Node # FIXME: add a further constrained type
var count: int

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	planet = get_child(0)
	self.rotate_y(angle_of_apoapsis)
	self.rotate_x(xtilt)
	self.rotate_z(ytilt)
	count = 0


# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
#	pass
# warning-ignore:unused_argument
func _physics_process(delta: float) -> void:
	count += 1
